$OpenBSD: patch-ConfigureChecks_cmake,v 1.4 2014/01/28 14:49:26 zhuk Exp $
Add support for BSD auth.
--- ConfigureChecks.cmake.orig	Wed Aug 28 20:59:37 2013
+++ ConfigureChecks.cmake	Mon Dec  9 20:11:15 2013
@@ -54,6 +54,7 @@ get_filename_component(xrootdir "${XBINDIR}" PATH)
 set(XLIBDIR "${xrootdir}/lib/X11")
 
 check_function_exists(getpassphrase HAVE_GETPASSPHRASE)
+check_function_exists(readpassphrase HAVE_READPASSPHRASE)
 check_function_exists(vsyslog HAVE_VSYSLOG)
 check_function_exists(statvfs HAVE_STATVFS)
 
@@ -94,7 +95,7 @@ check_type_size("struct ucred" STRUCT_UCRED)       # k
 check_function_exists(getpeereid  HAVE_GETPEEREID) # kdesu
 check_function_exists(setpriority  HAVE_SETPRIORITY) # kscreenlocker 
 
-set(CMAKE_REQUIRED_INCLUDES ${X11_Xrandr_INCLUDE_PATH}/Xrandr.h)
+set(CMAKE_REQUIRED_INCLUDES ${X11_Xrandr_INCLUDE_PATH})
 set(CMAKE_REQUIRED_LIBRARIES ${X11_Xrandr_LIB})
 check_function_exists(XRRGetScreenSizeRange XRANDR_1_2_FOUND)
 macro_bool_to_01(XRANDR_1_2_FOUND HAS_RANDR_1_2)
